Skip to content

fix(pm-console): what opening and using every page found, and the first report in the real Worker runtime - #12775

Merged
dezren39 merged 2 commits into
mainfrom
claude/pm-pages
Nov 23, 2026
Merged

dezren39 merged 2 commits into
mainfrom
claude/pm-pages

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

What was asked

"Check each page and ensure it works well. Check each page loads well."

How it was checked

  • Every screen opened (all fourteen), at a phone size and a desktop size, against the app behind the edge and the app straight from the host, with the laptop there and with it taken away. For each: how long until it showed its own content, script errors, console errors, failed requests, sideways scrolling, and whether the screen before it was still showing.
  • Every screen used: 29 actions a person would take (send a prompt, reply, mark done, answer a question three ways, reorder and cancel queued work, filter and unblock the queue, check and merge a pull request, rank and comment on an issue, message the agents, read a unit's log, start a unit, switch notification kinds, remove a phone, the sign-in form, back, deep links, a bad address).
  • The bundle run in the real Worker runtime (wrangler dev) against a host on the same machine.

I looked at every screenshot.

What was wrong, and is fixed

  1. A screen that has to fetch showed the screen before it. Moving to Queue, Agents, Phones, Sign-in, Laptop away or Notifications changed the title at once and left the previous screen's content under it until the fetch came back, however long that took. After 150 ms it now says "Loading Queue…", and a new screen opens at its top instead of wherever the last one was scrolled.
  2. The Agents screen did not load at all when the message log's answer was empty: "Cannot read properties of null". The host now answers with a list whatever the fleet printed; a read that is not answered with JSON is refused in one place instead of tripping each screen its own way; and a log that could not be read says so instead of "No messages."
  3. The laptop's first report hung for twenty seconds. Found only in the real runtime. Since the report-limit change (fix(pm-console): refuse bad reports unread, and say which commit the laptop runs #12715) the edge asked for an unknown key without reading the upload; the Worker then re-sent the same upload from a second copy of the stream, and in the Worker runtime a first copy left unread holds the second back. It affected first contact and a change of key, one report each time. The first copy is now read to its end before the key is asked for; every other refusal is still made unread.
  4. "Send as a command" on the Agents screen was drawn as a text field; a tick box is now a tick box wherever it sits.
  5. Queue and Ranked issues gave update times as UTC timestamps; they now read "14 min ago" like the rest of the app.
  6. A pull request's check printed "undefined" for anything GitHub left out.
  7. A written answer to a question vanished with no word. It now says "Answer sent".
  8. Services buttons are named like every other button; the sign-in form checks for its two values before asking the laptop; the Phones screen no longer asks the host a question only the edge can answer.

So that it is caught next time

  • The deploy now runs the bundle in the Worker runtime against a host on the runner, and makes the smoke checks, before it releases anything. That is the check that would have stopped item 3.
  • A test holds that the first copy of the upload is read (the part of item 3 that can be seen under bun).
  • The made-up host used to send the Queue screen's reads to the real queue store's address with a made-up token. It has a queue store of its own now, so the Queue screen can be checked and nothing goes out.

Checked

  • bun test: 186 pass. Planted faults for the new host and edge behaviour are caught (the log not a list; the first copy left unread).
  • After the fixes: 14 of 14 screens clean on both copies at both sizes; 29 of 29 actions on both copies; the real-runtime smoke passes from clean state, and fails on main as it is now.
  • With two screens slowed down on purpose: the old content at 60 ms, "Loading Queue…" at 400 ms, the screen itself when the answer arrives, each opened at the top.

Not checked

  • The live site, signed in. No browser of the owner's is connected to this session, and the session may not make a sign-in of its own. What was opened is the same code on two test copies and in the real runtime on this machine.
  • The screen-change behaviour has no automated test in the repository (there is no browser in its test suite); it was checked with a scripted browser.

Generated by Claude Code


See it in action
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…nd by opening every page

Every screen was opened and used on a phone-sized and a desktop
browser, against the app behind the edge and straight from the host.

- Moving to a screen that has to fetch (Queue, Agents, Phones, Sign-in,
  Laptop away, Notifications) left the screen before it showing under
  the new screen's name until the fetch came back, however long that
  took. After 150 ms it now says "Loading <screen>…", and a new screen
  opens at its top instead of wherever the last one was scrolled.
- The Agents screen did not load at all when the message log's answer
  was empty ("Cannot read properties of null"). The host now answers
  with a list whatever the fleet printed, a read that is not answered
  with JSON is refused in one place, and a log that could not be read
  is said to be that, not "No messages."
- Its "Send as a command" tick box was drawn as a text field; a tick
  box is now a tick box wherever it sits.
- Queue and Ranked issues gave update times as UTC timestamps where
  the rest of the app says "14 min ago".
- A pull request's check printed "undefined" for anything GitHub left
  out.
- A written answer to a question vanished with no word; it now says
  "Answer sent".
- Services buttons are named like every other button; the sign-in form
  checks for its two values before asking the laptop; the Phones screen
  no longer asks the host a question only the edge can answer.

The made-up host used to send the Queue screen's reads to the real
queue store's address with a made-up token. It has a queue store of its
own now, so that screen can be checked and nothing goes out.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
… seconds, and the Worker runtime is tried before every deploy

Running the bundle in the real Worker runtime (scripts/edge-smoke.ts)
showed what no test under bun could: since the report-limit change
(#12715), a report signed with a key the edge had not seen yet was
never answered. The edge asked for the key without reading the upload,
the Worker then sent the same upload to the state a second time from a
second copy of the stream, and in the Worker runtime a first copy left
unread holds the second back. The laptop gave up after twenty seconds;
the key had been learned by then, so the next report went through. It
happens on first contact and after a change of key, so it was one slow
report, but the same code before that change answered at once.

The first copy is now read to its end before the key is asked for. It
is read at most once in the key-fetch interval and only up to a
report's size, so it is no way to make the edge read at will; every
other refusal is still made unread.

The deploy now runs the bundle in the Worker runtime against a host on
the runner and makes the smoke checks before it releases anything.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 02:30
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 46 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 35b5415b-d193-4865-a0fb-dea97c87ada3
Commits

Reviewing files that changed from the base of the PR and between 3e40f48 and 694ea0c.

Files selected for processing: 10

  • .github/workflows/pm-console-edge-deploy.yml
  • pm-stack/console/edge/README.md
  • pm-stack/console/edge/src/edge.ts
  • pm-stack/console/public/app.css
  • pm-stack/console/public/app.js
  • pm-stack/console/scripts/demo-state.ts
  • pm-stack/console/src/ops.ts
  • pm-stack/console/test/app.test.ts
  • pm-stack/console/test/edge.test.ts
  • pm-stack/console/test/signin.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit 45191b4 into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the claude/pm-pages branch November 23, 2026 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants